//
//  User.swift
//  JJWeibo
//
//  Created by JJ on 15/9/6.
//  Copyright © 2015年 JJ. All rights reserved.
//

import UIKit

class User: NSObject {
    
    var id:Int=0
    var name:String?
    var profile_image_url: String?
    var verified: Int = 0
    var mbrank: Int = 0
    
    init(dic:[String:AnyObject]){
        super.init()
        
        setValuesForKeysWithDictionary(dic)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    override var description:String{
        let keys = ["id", "name", "profile_image_url", "verified", "mbrank"]
        return dictionaryWithValuesForKeys(keys).description
    }

}
